<?php

namespace app\controllers;

use Yii;
use app\tools\Re;
use app\models\Setting;

class SettingController extends BaseController
{
  //系统配置项
  public function actionIndex(){
    $setting = Setting::findOne(1);
    $data = [
      'about_content' => $setting->about,
      //'about_content' => '',
      'contact' => $setting->contact,
      'show_cancel' => $setting->show_cancel,
    ];
    return Re::data(['data' => $data]);
  }
}
